
package org.japril.jutil.pulse.demo;

import org.japril.jutil.logging.Log;
import org.japril.jutil.pulse.DefaultProduct;
import org.japril.jutil.pulse.Processor;
import org.japril.jutil.pulse.Product;
import org.japril.jutil.pulse.Products;

public class Captor implements Processor 
{
  public Captor(){}

  @Override
  public void process(Products products)
  {
    if (products.getPulseName().equals("capture")) 
	{
	  Log.log(this, "process", "looking sensed data");
	  Product[] prds=products.getProducts("sensor-output");
	  for (Product product : prds)
	  {
	    Log.log(this, "process", "  processing: "+product);
      }
    }
  }
  
  
}
